<?php 
if(!isset($_SESSION)) 
{ 
	session_start(); 
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<script src="../jquery-1.8.2.js" type="text/javascript"></script>
<script>
window.onload = function(){
	//sh();
	shcamera();
};
function sh(){
	var a =window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
	$.ajax({url:"aj_scroll.php",data:{winW:a},success:function(kq){
		var expr = new RegExp('>[ \t\r\n\v\f]*<', 'g');
		var response_html_fixed = kq.replace(expr, '><');
		$("#showcontent1").html(response_html_fixed);
	}});
}
function sordiem(ten){
	var a =window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
	$.ajax({url:"aj_scrollsort.php",data:{winW:a,ten:ten},success:function(rslbk2){
		var expr = new RegExp('>[ \t\r\n\v\f]*<', 'g');
		var response_html_fixed = rslbk2.replace(expr, '><');
		$("#show").html(response_html_fixed);
	}});
}

function shcamera(){
	var a =window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
	var b =window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
	$.ajax({url:"aj_scrollcamera.php",data:{winW:a,winH:b},success:function(kq){
		var expr = new RegExp('>[ \t\r\n\v\f]*<', 'g');
		var response_html_fixed = kq.replace(expr, '><');
		$("#showcontent1").html(response_html_fixed);
	}});
}
</script>

</head>
<body style="height:100%" onresize="shcamera()">
<form id="fn" name="fn" method="post" action="" >
<input type="text" id="showwidth" name="showwidth" onclick="sh()"/>
<div style="width:100%; align:center" id="showcontent1">

</div>
</form>
</body>
</html>